<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<title>图书管理系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Modern Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
 <!-- Bootstrap Core CSS -->
<link href="/bookManage/Public/home/css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="/bookManage/Public/home/css/style.css" rel='stylesheet' type='text/css' />
<link href="/bookManage/Public/home/css/font-awesome.css" rel="stylesheet"> 
<!-- jQuery -->
<script src="/bookManage/Public/home/js/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="/bookManage/Public/home/js/bootstrap.min.js"></script>
</head>
<body>
<div id="wrapper">
     <!-- Navigation -->
        <nav class="top1 navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">图书管理系统</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">图书管理系统</a>
            </div>
            <!-- /.navbar-header -->
            <ul class="nav navbar-nav navbar-right">
          <li class="dropdown">
              <a href="#" class="dropdown-toggle avatar" data-toggle="dropdown"><img src="/bookManage/Public/home/images/6.png"></a>
              <ul class="dropdown-menu">
            <li class="dropdown-menu-header text-center">
              <strong><?php echo (cookie('username')); ?></strong>
            </li>
            <li class="m_2"><a href="<?php echo U('home/user/updatepwd');?>"><i class="fa fa-wrench"></i> 修改密码</a></li>
            <li class="m_2"><a href="<?php echo U('home/user/logout');?>"><i class="fa fa-lock"></i> 安全退出</a></li> 
              </ul>
            </li>
      </ul>
            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li>
                            <a href="<?php echo U('home/index/index');?>"><i class="fa fa-sitemap fa-fw nav_icon"></i>借阅情况</a>
                        </li>
                        <li>
                            <a href="<?php echo U('home/user/updatepwd');?>"><i class="fa fa-laptop nav_icon"></i>修改密码</a>
                        </li>
                    </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>
        <div id="page-wrapper">
        <div class="col-md-12 graphs">
	   <div class="xs" style="min-height: 450px;">
  	 <h3>借阅情况</h3>
   <div class="panel-body1">
   <table class="table nth-child table-striped table-hover">
     <thead>
        <tr>
          <th>#</th>
          <th>书名</th>
          <th>借阅时间</th>
          <th>应归还时间</th>
          <th>实际归还时间</th>
          <th>状态</th>
        </tr>
      </thead>
      <tbody>
        <?php if(is_array($booklist)): foreach($booklist as $key=>$b): ?><tr>
          <th scope="row"><?php echo ($b["id"]); ?></th>
          <td><?php echo ($b["b_name"]); ?></td>
          <td><?php echo (date('Y-m-d',$b["addtime"])); ?></td>
          <td><?php echo (date('Y-m-d',$b["yinggui"])); ?></td>
          <td>
            <?php if($b["sign"] == 1): ?><span style="text-align: center;">---</span>
            <?php else: ?>
              <?php echo (date('Y-m-d',$b["backtime"])); endif; ?>
          </td>
          <td>
            <?php if($b["sign"] == 1): ?><span style="color: red;">未归还</span>
            <?php else: ?>
              <span style="color: green;">已归还</span><?php endif; ?>
          </td>
        </tr><?php endforeach; endif; ?>
      </tbody>
    </table>
    </div>

  </div>
    <div class="copy">
            <p>Copyright &copy; 2017.长春师范大学 All rights reserved.</p>
      </div>
   </div>
      </div>
      <!-- /#page-wrapper -->
   </div>
    <!-- /#wrapper -->
<!-- Nav CSS -->
<link href="/bookManage/Public/home/css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="/bookManage/Public/home/js/metisMenu.min.js"></script>
<script src="/bookManage/Public/home/js/custom.js"></script>
</body>
</html>